package com.learn.designPatterns.behavioral.command;

/**
 * @classname:
 * @Description:
 * @author: yfpu
 * @Date: 2018-09-12 19:55
 */
public class LightOffCommand implements Command{

    private Light light;



    public LightOffCommand(Light light) {
        this.light = light;
    }

    @Override
    public void execute() {
        light.off();
    }

}
